package org.microservice.common.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;
import org.microservice.common.base.AbstractAuditingEntity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: 齐丹枫
 * Date: 2018/6/20
 * Time: 15:07
 * To change this template use File | Settings | File Templates.
 * Description:
 */
@Data
@TableName("sys_role")
public class RoleVo extends AbstractAuditingEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    private Integer id;
    /**
     * 角色名称
     */
    private String name;
    /**
     * 角色代码
     */
    private String value;
    /**
     * 是否可用
     */
    private boolean disabled;


    /**
     * 权重
     */
    private int weight;

    @TableField(exist=false)
    private List<MenuVo> menuVos = new ArrayList<>();
    @TableField(exist=false)
    private List<Integer> menuIds = new ArrayList<>();

}
